/*
     File: MainViewController.h
 Abstract: The application's main view controller (front page).
 Artgruppe (c) 2009
  Version: 1.0
 */


#define kMaximumDirections 	2

#import <UIKit/UIKit.h>
#import "ModalViewController.h"
#import "controllerWithTab.h"
//#import "undergroundController.h"

@class railwaysController;
@class busController;

@interface MainViewController : controllerWithTab <UINavigationBarDelegate, UITableViewDelegate,
												  UITableViewDataSource, UIActionSheetDelegate,
													UITabBarDelegate,UITabBarControllerDelegate>
{
	UITableView	*myTableView;
	NSMutableArray *menuList;
	
	railwaysController** _aControllers;
	
	ModalViewController *myModalViewController;	
	railwaysController* _onlyOneController;

	int			_nCurRailway;
	int			_nLoadedDirection;
	
	bool		_bHaveToLoadAnotherDir;
	int			_nTabBar;
	
	NSMutableArray* viewContr;
	bool	_bShowQuer;
	bool _bOtherViewWasShown;
	int nCurAmountOfDirections;
	bool _bLoadADirection;
	IBOutlet UINavigationController* navController;	
	IBOutlet controllerWithTab* underground;	
	IBOutlet UIActivityIndicatorView* busy;
	IBOutlet busController* _buses;
}
@property (nonatomic,retain) IBOutlet controllerWithTab* underground;
@property (nonatomic,retain) IBOutlet UINavigationController* navController;
@property (nonatomic, retain) IBOutlet UITableView *myTableView;
@property (nonatomic, retain) NSMutableArray *menuList;
@property (nonatomic, retain) ModalViewController *myModalViewController;
@property (nonatomic, retain) NSMutableArray* viewContr;

- (IBAction)styleAction:(id)sender;
-(void) releaseAllUnneededElements: (NSString*) strName;
-(void) loadDirection;
-(void) loadAnotherController;
-(void) checkSizes;
@end
